package com.yuanfeng.activity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuanfeng.activity.entity.ActivityReductionPolicyBaseEntity;
import com.yuanfeng.commoms.dto.goods.ListPageQueryParamDTO;
import com.yuanfeng.commoms.dto.goods.ManjianzengzheGoodsRuleQueryDTO;
import com.yuanfeng.commoms.util.ResponseResult;
import com.yuanfeng.commoms.vo.activity.ManjianzengzheGoodsQueryResultVO;
import com.yuanfeng.commoms.vo.activity.ManjianzengzhePromotionContentQueryResultVO;

import java.util.List;

/**
 * @ClassName ActivityReductionPolicyBaseService
 * @Description  满减赠折基本信息表
 * @Author cyp
 * @Date 2023-05-25 14:41:45
 * @Version 1.0
 **/
public interface ActivityReductionPolicyBaseService extends IService<ActivityReductionPolicyBaseEntity> {
    /**
     * 查询满减增折活动信息
     * @param commonId
     * @return
     */
    ManjianzengzheGoodsQueryResultVO selectByGoodsId(Integer commonId);

    /**
     * 查询满减增折活动规则
     * @param promotionId
     * @return
     */
    List<ManjianzengzheGoodsRuleQueryDTO> selectList(Integer promotionId);

    /**
     * 查询满减增折 活动内容
     * @param commonId
     * @return
     */
    List<ManjianzengzhePromotionContentQueryResultVO> selectContent(Integer commonId);

    /**
     * 查询所有 满减增折商品
     * @param param
     * @return
     */
    ResponseResult selectAll(ListPageQueryParamDTO param);

    /**
     * 查询活动商品价格
     */
    ResponseResult selectPrice(Integer goodsId);
}

